package com.lv.phuotbacnam.bl.data;

import com.parse.ParseGeoPoint;

import org.json.JSONArray;

import java.util.Date;

/**
 * Created by VanQuan on 26/08/2014.
 */
public class EventObject {
    private String objectId;
    private String address;
    private Date date;
    private String eventDescription;
    private String eventName;
    private int maxMembers;
    private JSONArray photos;
    private ParseGeoPoint location;

    public EventObject() {
        super();
    }

    public EventObject(String address, Date date, String eventDescription, String eventName, int maxMembers, JSONArray photos, ParseGeoPoint location) {
        this.address = address;
        this.date = date;
        this.eventDescription = eventDescription;
        this.eventName = eventName;
        this.maxMembers = maxMembers;
        this.photos = photos;
        this.location = location;
    }

    public EventObject(String objectId, String address, Date date, String eventDescription, String eventName, int maxMembers, JSONArray photos, ParseGeoPoint location) {
        this.objectId = objectId;
        this.address = address;
        this.date = date;
        this.eventDescription = eventDescription;
        this.eventName = eventName;
        this.maxMembers = maxMembers;
        this.photos = photos;
        this.location = location;
    }

    //////////////////////////////////////////////////////
    // Getter
    //////////////////////////////////////////////////////
    public String getObjectId() {
        return objectId;
    }

    public String getAddress() {
        return address;
    }

    public Date getDate() {
        return date;
    }

    public String getEventDescription() {
        return eventDescription;
    }

    public String getEventName() {
        return eventName;
    }

    public int getMaxMembers() {
        return maxMembers;
    }

    public JSONArray getPhotos() {
        return photos;
    }

    public ParseGeoPoint getLocation() {
        return location;
    }

    // Get keys
    public String getObjectIdKey() {
        return "objectId";
    }

    public String getAddressKey() {
        return "address";
    }

    public String getDateKey() {
        return "date";
    }

    public String getEventDescriptionKey() {
        return "eventDescription";
    }

    public String getEventNameKey() {
        return "eventName";
    }

    public String getMaxMembersKey() {
        return "maxMembers";
    }

    public String getPhotosKey() {
        return "photos";
    }

    public String getLocationKey() {
        return "location";
    }

    /////////////////////////////////////////////////////
    // Setter
    ////////////////////////////////////////////////////
    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setEventDescription(String eventDescription) {
        this.eventDescription = eventDescription;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public void setMaxMembers(int maxMembers) {
        this.maxMembers = maxMembers;
    }

    public void setPhotos(JSONArray photos) {
        this.photos = photos;
    }

    public void setLocation(ParseGeoPoint location) {
        this.location = location;
    }
}
